Ektron CMS400.Net Reference

>>Helping Users Navigate Your Web Site > Collections > Collection Server Control > ecmNavigation Display Example

ecmNavigation Display Example

The following figure shows a collection being used as a navigation menu.

ecmNavigation XSL code

The following XSL code creates the ecmNavigation Display. You can use this code as the basis to design your own XSLT.

Warning! If you create a custom file, it is strongly recommended that you do not store it in the Workarea folder. If you do, the file will be overwritten when you upgrade.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <xsl:for-each select="Collection/Content">
   <tr>
      <td>
         <a>
            <xsl:attribute name="href">
                <xsl:value-of select="QuickLink"/>
            </xsl:attribute>
                <xsl:value-of select="Title"/>
         </a>
     </td>
   </tr>
   </xsl:for-each>
  </table>
</xsl:template>
</xsl:stylesheet>

Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.